package com.bawei.movie.api

import com.bawei.http.ApiBaseResponse
import com.bawei.common.entity.MovieEntity
import com.bawei.movie.entity.MovieTabEntity
import retrofit2.http.GET
import retrofit2.http.Query

interface MovieApiServer {

    //获取一级分类
    @GET("/videotype/getMutilType")
    suspend fun getMultiType(): ApiBaseResponse<List<MovieTabEntity>>

    //获取二级分类
    @GET("/videotype/getMutilTypeByPid")
    suspend fun getMultiTypeByPid(@Query("pid") pid: Int): ApiBaseResponse<List<MovieTabEntity>>

    //获取推荐的视频
    @GET("/videomulti/getRecommendMutilVideo")
    suspend fun getRecommendMultiVideo(@Query("page") page: Int, @Query("pagesize") pageSize: Int): ApiBaseResponse<List<MovieEntity>>

    //获取二级分类视频
    @GET("/videomulti/getMutilVideoByTypeId")
    suspend fun getMultiVideoByTypeId(@Query("typeid") typeId: Int, @Query("page") page: Int, @Query("pagesize") pageSize: Int): ApiBaseResponse<List<MovieEntity>>


}